<?php $title_show = empty ($datacontent['id'])?"Add":"Edit"; ?>
  <link rel="stylesheet" type="text/css" href="<?php echo base_url();?>public/skin/back-end/css/chantable.css"/>
  <h1>Support Online Management <span class="greysubheading"><?php echo $title_show; ?></span></h1>
<form id="news-form" action="" method="POST" enctype="multipart/form-data" name="form">
  <div id="c_wapper">
  <fieldset ><legend>Field:</legend>
  <table>
  <tbody>
<?php echo textfield('name','Name',((array_key_exists('name', $datacontent))?$datacontent['name']:null))?>
<?php echo textfield('position','Position',((array_key_exists('position', $datacontent))?$datacontent['position']:null))?>
<?php echo textfield('yahoo','YAHOO',((array_key_exists('yahoo', $datacontent))?$datacontent['yahoo']:null))?>
<?php echo textfield('sky','SKYPE',((array_key_exists('sky', $datacontent))?$datacontent['sky']:null))?>
<?php echo textfield('msm','MSM',((array_key_exists('msm', $datacontent))?$datacontent['msm']:null))?>
<?php echo dropdown('status','Status',array('1'=>'Available','0'=>'Unavailable'),((array_key_exists('status', $datacontent))?$datacontent['status']:null)) ?>

  </tbody>
  </table>
  </fieldset>
  <table>
  <tr>
  <td>
  <button type="submit" id="button">Edit</button>
  <button type="reset" id="reset" onClick="location.reload(true)" id="button">Reset</button>
  </td>
  </tr>
  </table>
  </div>
  </form>
	